//
//  ReportLargerHeadView.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/11/21.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "ReportLargerHeadView.h"

@implementation ReportLargerHeadView
-(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self=[super initWithReuseIdentifier:reuseIdentifier]) {
        
        CGFloat width=SCREEN_WIDTH/4.0;
        
        for (NSInteger i=0; i<4; i++) {
            
            UILabel *subLabel=[[UILabel alloc]initWithFrame:CGRectMake(i*width, 10, width, 21)];
            
            subLabel.textAlignment=NSTextAlignmentCenter;
            
            subLabel.textColor=TBColorAppTheme;
            
            subLabel.minimumScaleFactor=0.5;
            
            subLabel.font=[UIFont systemFontOfSize:15];
            
            
            switch (i) {
                case 0:
                {
                    subLabel.text=@"符合数量";
                }
                    break;
                case 1:
                {
                    subLabel.text=@"不符合数量";
                }
                    break;
                case 2:
                {
                    subLabel.text=@"不适用数量";
                }
                    break;
                case 3:
                {
                    subLabel.text=@"总数量";
                }
                    break;
                
                default:
                    
                    break;
            }
            
            [self.contentView addSubview:subLabel];
            
        }
        
        
    }
    
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
